package com.gxa.learning.core.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 类别表的映射实体
 *
 * @author lijianmin
 * @date 2021/12/02  14:25:28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "tb_type")
@ApiModel
public class Type implements Serializable {

    /**
     * 类别编号
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "type_id")
    @ApiModelProperty(name = "id", value = "id", dataType = "Long", example = "类别编号")
    private Long id;

    /**
     * 类别名称   例如: 人力资源、Java开发等等....
     */
    @Column(name = "type_name", unique = true)
    @ApiModelProperty(name = "name", value = "name", dataType = "String", example = "类别名称")
    private String name;
}
